package zh.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zh.demo.dao.PublicAdDao;
import zh.demo.model.PublicAdEntity;

import java.util.List;
import java.util.Map;



@Service("publicAdService")
public class PublicAdService {
	@Autowired
	private PublicAdDao publicAdDao;
	
	public PublicAdEntity queryObject(Integer id){
		return publicAdDao.queryObject(id);
	}
	
	public List<PublicAdEntity> queryList(Map<String, Object> map){
		return publicAdDao.queryList(map);
	}
	
	public int queryTotal(Map<String, Object> map){
		return publicAdDao.queryTotal(map);
	}
	
	public void save(PublicAdEntity publicAd){
		publicAdDao.save(publicAd);
	}
	
	public void update(PublicAdEntity publicAd){
		publicAdDao.update(publicAd);
	}
	
	public void delete(Integer id){
		publicAdDao.delete(id);
	}
	
	public void deleteBatch(Integer[] ids){
		publicAdDao.deleteBatch(ids);
	}
	
}
